<template>
	<view class="out_view">
		<view class="left-top-sign">LOGIN</view>
		<view class="welcome">
			欢迎回来！
		</view>
		<view class="input-content">
			<view class="input-item">
				<text class="tit">手机号码</text>
				<input type="number" :value="mobile" placeholder="请输入手机号码" maxlength="11" data-key="mobile"
					@input="inputChange" />
			</view>
			<view class="input-item">
				<text class="tit">密码</text>
				<input type="mobile" value="" placeholder="8-18位不含特殊字符的数字、字母组合" placeholder-class="input-empty"
					maxlength="20" password data-key="password" @input="inputChange" @confirm="toLogin" />
			</view>
		</view>
		<button class="confirm-btn" @click="toLogin(this)" :disabled="logining">登录</button>
		<view class="forget-section">
			忘记密码?
		</view>
	</view>
	<view class="register-section">
		还没有账号?
		<text @click="toRegist">马上注册</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			toRegist(){
				uni.navigateTo({
					url: `/pages/register/register`
				})
			}
		}
	}
	
</script>

<style lang="scss">
	.out_view {
		position: relative;
		z-index: 90;
		background: #fff;
		height:100%;
	}
	
	.left-top-sign {
		font-size: 120upx;
		color: #ebeae9;
		position: relative;
		left: -16upx;
	}
	
	.welcome {
		position: relative;
		left: 50upx;
		top: -90upx;
		font-size: 46upx;
		color: #36343c;
		text-shadow: 1px 0px 1px rgba(0, 0, 0, .3);
	}
	
	.input-content {
		padding: 0 60upx;
	}
	
	.input-item {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		padding: 0 30upx;
		border-radius: 4px;
		margin-bottom: 50upx;
		border: 1px;
		background-color: #f8f6fc;
	
		.tit {
			height: 50upx;
			line-height: 56upx;
			font-size:11px;
			color: #36343c;
		}
	
		input {
			height: 60upx;
			font-size: 13px;
			color: #36343c;
			width: 100%;
		}
	}
	
	.confirm-btn {
		width: 630upx;
		height: 76upx;
		line-height: 76upx;
		border-radius: 50px;
		margin-top: 70upx;
		color: #fff;
		font-size: 14px;
		background-color: #fa436a;
	
		&:after {
			border-radius: 100px;
		}
	}
	
	.forget-section {
		font-size: 11px;
		color: #4399fc;
		text-align: center;
		margin-top: 40upx;
	}
	
	.register-section {
		position: absolute;
		left: 0;
		width: 100%;
		font-size: 11px;
		color: #36343c;
		text-align: center;
		background-color:#fff ;
		height: 40%;
		text {
			color: #4399fc;
			margin-left: 10upx;
			z-index: 10;
			line-height: 250px;
		}
	}
</style>